package com.rocpenghua.design.visitor;

/**
 * @author pengp
 * @date 2023年02月23日 11:49
 */
public class MainTest {
    public static void main(String[] args) {
        ComputerPart computer = new Computer();
        computer.accept(new ComputerPartDisplayVisitor());
    }
}
/**
 * Displaying Mouse.
 * Displaying Keyboard.
 * Displaying Monitor.
 * Displaying Computer.
 */